﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace SmartController.Convertors
{
    public class IntToRefreshRateConvertor : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return 1000 / (int)(double) value + "Hz / " + (int)(double) value + " ms";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}